<?php

/**
 * @version		$Id$
 * @package		Joomla.Administrator
 * @subpackage	JoomDOC_2
 * @author      ARTIO s.r.o., info@artio.net, http:://www.artio.net
 * @copyright	Copyright (C) 2011 Artio s.r.o.. All rights reserved.
 * @level		GNU General Public Level version 2 or later; see LEVEL.txt
 */

defined('_JEXEC') or die();

jimport('joomla.application.component.controllerform');

class JoomDOC_2ControllerLevel extends JoomDOC_2ControllerForm {
    /**
     * Allow add level operation.
     *
     * @return boolean
     */
    public function allowAdd () {
        return JoomDOC_2Access::levels();
    }
    /**
     * Allow edit level operation.
     *
     * @return boolean
     */
    public function allowEdit () {
    	return true;
        return JoomDOC_2Access::levels();
    }
    /**
     * Allow save level operation.
     *
     * @return boolean
     */
    public function allowSave () {
        return JoomDOC_2Access::levels();
    }
    /**
     * Get level model.
     *
     * @return JoomDOC_2ModelLevel
     */
    public function getModel () {
        return JModel::getInstance(JOOMDOC_LEVEL, JOOMDOC_MODEL_PREFIX);
    }
}
?>